package org.jeecg.modules.charge.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ChargeInvoiceTypeTree implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id;

	private String typeNum;

	private String name;


	private String delFlag;

	private String createBy;

	private Date createTime;

	private String updateBy;

	private Date updateTime;

	//----------新加-------------------
	private String key;

	private String value;

	private String title;

	public ChargeInvoiceTypeTree(){}

	public ChargeInvoiceTypeTree(ChargeInvoiceType type){
		this.key = type.getId();
		this.value =type.getTypeNum();
		this.title = type.getTypeNum()+"|"+type.getName();
		this.name=type.getName();
		this.id = type.getId();
		this.delFlag = type.getDelFlag();
		this.createBy = type.getCreateBy();
		this.createTime = type.getCreateTime();
		this.updateBy = type.getUpdateBy();
		this.updateTime = type.getUpdateTime();
	}

}
